<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.3.1.js"></script>
    <script src="../js/swiper.js"></script>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        body > div {
            overflow: hidden;
            width: 600px;
            height: 300px;
            margin: 0px auto;
            position: relative;
        }
        .transImg{
            width: 600px;
            height: 300px;
            margin: 0px auto;
            position: absolute;
        }
    </style>
</head>
<body>
    <div>
        <div class="transImg">
            
        </div>
    </div>
    <script>
        let divEle =document.querySelector(".transImg");
        let auto = new MySwiper(divEle,["../images/1.jpg","../images/2.jpg","../images/3.jpg","../images/4.jpg","../images/5.jpg"]);
    </script>
</body>
</html>